import 'package:flutter/material.dart';

import '../../../components/tag.dart';

class Information extends StatefulWidget {
  @override
  _InformationState createState() => _InformationState();
}

class _InformationState extends State<Information> {
  @override
  Widget build(BuildContext context) {
    return Card(
      margin: EdgeInsets.symmetric(vertical: 10,horizontal: 20),
      shape: RoundedRectangleBorder(
        borderRadius: BorderRadius.all(Radius.circular(20.0)),
        side: BorderSide(
          width: 0,
          color: Color.fromARGB(250, 211, 211, 211),
          style: BorderStyle.solid,
        ),
      ),
      child: Container(
        width: double.infinity,
        padding: EdgeInsets.all(10),
        child:Column(
          mainAxisAlignment: MainAxisAlignment.start,
          crossAxisAlignment: CrossAxisAlignment.start,
          children: [
            Row(
              mainAxisAlignment: MainAxisAlignment.spaceAround,
              children: [
                Text(
                  "name",
                  style: TextStyle(
                    fontWeight: FontWeight.w300,
                    fontSize: 30
                  ),
                ),
                Container(
                  margin: EdgeInsets.only(left: 20,top: 10,right: 20),
                  child: Text(
                      "100 关注"
                  ),
                ),
                Text(
                  "2016/01/25",
                  style: TextStyle(
                    color: Colors.grey
                  ),
                )
              ],
            ),
            Container(
              padding: EdgeInsets.all(10),
              child:Wrap(
                runSpacing: 8.0,
                spacing: 8.0,
                children: [
                  Tag(name: "罗丹",),
                  Tag(name: "罗丹",),
                  Tag(name: "罗丹",),
                  Tag(name: "罗丹",),
                  Tag(name: "罗丹",),
                  Tag(name: "罗丹",),
                  Tag(name: "罗丹",),
                  Tag(name: "罗丹",),
                  Tag(name: "罗丹",),
                  Tag(name: "罗丹",),
                  Tag(name: "罗丹",),
                  Tag(name: "罗丹",),
                  Tag(name: "罗丹",),
                  Tag(name: "罗丹",),
                ],
              ),),
          ],
        )
      ),
    );
  }
}
